package org.mics.organization.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Where;
import org.mics.jpa.entity.BaseEntity;
import org.mics.organization.enums.Sex;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 员工/职工
 * @author mics
 * @date 2023-9-22
 * @version  1.0
 */
@Data
@Entity
@Table(name = "t_staff")
@Where(clause = "bln_del = 0")
@EqualsAndHashCode(callSuper = false)
public class StaffDO extends BaseEntity{
	
    @Column(name = "name",  columnDefinition = "varchar(32) comment '员工姓名' ")
	private String name;
    
    @Column(name = "sex",  columnDefinition = "bit(1) comment '性别' ")
	private Sex sex;
    
    @Column(name = "mobile", unique = true, columnDefinition = "varchar(32) comment '手机号' ")
    private String mobile;
    
    @Column(name = "post_id",  columnDefinition = "varchar(32) comment '岗位id' ")
	 private String postId;

    @Column(name = "job_number", unique = true,  columnDefinition = "varchar(32) comment '员工工号' ")
    private String jobNumber;
    
    @Column(name = "department_id", columnDefinition = "varchar(32) comment '部门Id' ")
	private String departmentId;
    
    @Column(name = "remark",  columnDefinition = "varchar(32) comment '备注' ")
    private String remark;
}
